home *** CD-ROM | disk | FTP | other *** search
- property snum, cnum, acount, dcount
- global kidobj, naobj
-
- on birth me, lh, lv, spnum
- set snum to spnum
- set cnum to the number of cast "kid_de.loop"
- set the puppet of sprite snum to 1
- set the type of sprite snum to 1
- set the castNum of sprite snum to cnum
- set the ink of sprite snum to 36
- set the foreColor of sprite snum to 255
- set the backColor of sprite snum to 0
- set the locH of sprite snum to lh
- set the locV of sprite snum to lv
- set acount to 0
- set dcount to 0
- return me
- end
-
- on kidmove me
- set acount to acount - 1
- if acount = 8 then
- puppetSound(3, the number of cast "p_hit")
- else
- if acount <= 0 then
- if dcount = 9 then
- set cnum to the number of cast "kid_down"
- puppetSound("booing")
- set dcount to 10
- showscore()
- else
- set cnum to the number of cast "kid_de.loop"
- end if
- set the castNum of sprite snum to cnum
- end if
- end if
- end
-
- on kidguard me
- if (acount > 0) or (dcount >= 9) then
- exit
- end if
- set cnum to the number of cast "kid_gu"
- set the castNum of sprite snum to cnum
- updateStage()
- set acount to 4
- end
-
- on kidpunchr me
- if (acount > 0) or (dcount >= 9) then
- exit
- end if
- set cnum to the number of cast "kid_PR"
- set the castNum of sprite snum to cnum
- if (the cnum of naobj = the number of cast "na_de.loop") or (the cnum of naobj = the number of cast "na_PR") then
- nadamage(naobj)
- set acount to 10
- else
- set acount to 4
- end if
- puppetSound(3, the number of cast "p_play")
- updateStage()
- end
-
- on kidpunchl me
- if (acount > 0) or (dcount >= 9) then
- exit
- end if
- set cnum to the number of cast "kid_PL"
- set the castNum of sprite snum to cnum
- if (the cnum of naobj = the number of cast "na_de.loop") or (the cnum of naobj = the number of cast "na_PL") then
- nadamage(naobj)
- set acount to 10
- else
- set acount to 4
- end if
- puppetSound(3, the number of cast "p_play")
- updateStage()
- end
-
- on kiddamage me
- set cnum to the number of cast "kid_da"
- set acount to 6
- set the castNum of sprite snum to cnum
- set dcount to dcount + 1
- set the puppet of sprite (dcount + 20) to 1
- set the blend of sprite (dcount + 20) to 30
- end
-